### Instructions for Timmer

Timmer, Marcel P., Abdul Azeez Erumban, Bart Los, Robert Stehrer, and Gaaitzen J. de Vries. “Slicing Up Global Value Chains.” Journal of Economic Perspectives 28, no. 2 (May 2014): 99–118. https://doi.org/10.1257/jep.28.2.99

This subpackage takes the replciation package from the above paper as departure point. We use their data, and some of their code directly as well as modify some code for our more limited needs.
We use their "Foreign shares underlying figure 2.m" and modify it to obtain foreign shares of VA in the manufacturing sector. We also use more up to date WIOD data than they do for Switzerland.
As their replication packge runs largely on matlab, we stick with it for this process.

### Files in order of execution
- div.m | File by Timmers et al. | Called in foreign_shares.m and WIOD16_script.m | Element-wise division of a matrix with handling of zeros.
- invd.m | File by Timmers et al. | Called in foreign_shares.m and WIOD16_script.m | Gets the inverse of the values on the diagonal of a matrix.
- foreign_shares.m | Adapted from "oreign shares underlying figure 2.m" | Computes the foreign value-added share for each year.
- WIOD16_script.m | Same as above but with different data.
- offshoring.do | Imports the resulting excel files and brings them into a for us useable form


# Other files used (/datasets/import)
- WIOD16 | World input output tables as excel binaries
- agg_foreign_shares_modified_WIOD16.xlsx | template for aggregation
- agg_foreign_shares_modified.xlsx | template for aggregation
